package com.yuxi.Dao.Impl;

import java.io.Serializable;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.yuxi.Dao.InformationQualityDao;
import com.yuxi.Entity.InformationQuality;

@Repository
public class InformationQualityDaoImpl extends BaseDaoImpl<Serializable, Serializable> implements InformationQualityDao {
	private Logger logger=LoggerFactory.getLogger(InformationQualityDaoImpl.class);
	public InformationQualityDaoImpl(){
		super(InformationQuality.class);
	}
	@Override
	public InformationQuality getIQuality(Integer iQualityId) {
		// TODO Auto-generated method stub
		return (InformationQuality) super.get(iQualityId);
	}

	@Override
	public InformationQuality addIQuality(InformationQuality iQuality) {
		// TODO Auto-generated method stub
		return (InformationQuality) super.addAndReturn(iQuality);
	}

	@Override
	public void deleteIQuality(InformationQuality iQuality) {
	
		super.delete(iQuality);
	}

	@Override
	public void modifly(InformationQuality iQuality) {
		
		super.update(iQuality);
	}
	@Override
	public List<InformationQuality> getAllInformationQuality() {
		// TODO Auto-generated method stub
		return super.find("from InformationQuality");
	}

}
